import { BaseEntity } from '@cool-midway/core';
import { Column, Entity, Index } from 'typeorm';

/**
 * follow模块-用户关注信息
 */
@Entity('follow_user_info')
export class FollowUserInfoEntity extends BaseEntity {
  @Index()
  @Column({ comment: '用户ID' })
  userId: number;

  @Index()
  @Column({ comment: '关注ID' })
  followId: number;

  @Column({ comment: '关注时间', type: 'datetime' })
  followTime: Date;

  @Column({ comment: '关注状态 0-未关注 1-已关注', default: 0 })
  followStatus: number;

  @Column({ comment: '备注', nullable: true })
  remark: string;
}
